<ion-view class="bg">
  <ion-header-bar class="bar bar-positive">
    <button class="button back-button buttons icon ion-ios-arrow-left button-clear" nav-direction="back" ui-sref="myOrder">返回</button>
    <h3 class="title">订单详情</h3>
  </ion-header-bar>
  <ion-content>
    <!--<div ng-if="showloading" class="ion-spinner">-->
      <!--<ion-spinner icon="lines" class="spinner-calm"></ion-spinner>-->
    <!--</div>-->
    <ion-list class="myList">
      <li class="item li">
        <div>
          <i>订单编号</i>
          <i class="value">{{orderDetail.ORDER_NO}}</i>
        </div>
        <div>
          <i>承运单号</i>
          <i class="value">{{orderDetail.WAYBILL_NO}}</i>
        </div>
        <div>
          <i>订单日期</i>
          <i class="value">{{orderDetail.CREATE_DATE | date : "yyyy-MM-dd"}}</i>
        </div>
        <div>
          <i>订单类型</i>
          <i class="value">{{orderType}}</i>
        </div>
        <div>
          <i>订单状态</i>
          <i class="value">{{orderStatus}}</i>
        </div>
      </li>
      <div class="item item-input item-divider div" style="width: 100%;">
        <img src="img/shr_logo.png" class="typeIcon" style="height: 25px;">
        <i class="dark">收货信息</i>
      </div>
      <div class="item item-input div">
        <i class="col-50">{{orderDetail.CONSIGNEE_NAME}}</i>
        <i class="col-50">{{orderDetail.CONSIGNEE_PHONE}}</i>
      </div>
      <div class="address">
        {{orderDetail.CONSIGNEE_ADDRESS_UNION}}
      </div>
      <div class="item item-input item-divider div">
        <img src="img/fhr_logo.png" class="typeIcon" style="height: 25px;">
        <i class="dark">发货信息</i>
      </div>
      <div class="item item-input div">
        <i class="col-50">{{orderDetail.CONSIGNOR_NAME}}</i>
        <i class="col-50">{{orderDetail.CONSIGNOR_PHONE}}</i>
      </div>
      <div class="address">
        {{orderDetail.CONSIGNOR_ADDRESS_UNION}}
      </div>
      <div class="item item-input item-divider div">
        <img src="img/fhxx_logo.png" class="typeIcon" style="height: 25px;">
        <i class="dark">货物信息</i>
      </div>
      <div class="item item-input div">
        <i class="col-50">{{orderDetail.GOODS_NAME}}</i>
        <i class="col-50">{{orderDetail.PIECES}}件</i>
      </div>
      <div class="item item-input item-divider div">
        <img src="img/fy_logo.png" class="typeIcon" style="height: 25px;">
        <i class="dark">费用信息</i>
      </div>
      <div class="item item-input div">
        <i class="input-label col-25">付款方式</i>
        <i>{{paymentSwitch}}</i>
      </div>
      <div class="item item-input div">
        <i class="input-label col-25">代收货款</i>
        <i>{{orderDetail.AGENCY_FUND | number:2}}元</i>
      </div>
      <div class="item item-input div">
        <i class="input-label col-25">声明价值</i>
        <i>{{orderDetail.DECLARE_VALUE | number:2}}元</i>
      </div>
      <div class="item item-input div">
        <i class="input-label col-25">是否提货</i>
        <i class="col-25">{{pickupSwitch}}</i>
        <i class="input-label col-25" ng-if="pickupSwitch=='是'">提货费</i>
        <i class="col-25" ng-if="pickupSwitch=='是'&&orderDetail.PICK_UP_COST!=null">{{orderDetail.PICK_UP_COST | number:2}}元</i>
        <i class="col-25" ng-if="pickupSwitch=='是'&&orderDetail.PICK_UP_COST==null">0.00元</i>
      </div>
      <div class="item item-input div">
        <i class="input-label col-25">是否投保</i>
        <i class="col-25">{{insureSwitch}}</i>
        <i class="input-label col-25">签收单</i>
        <i class="col-25">{{receiptSwitch}}</i>
      </div>
      <div class="address">
        备注:{{orderDetail.REMARK}}
      </div>
    </ion-list>
  </ion-content>
</ion-view>
